using MediatR;
using RBAC.Domain.Dto.Output;
using RBAC.ErrorCode;
using RBAC.Read.Api.Application.Dto.ERP;
using System;

namespace RBAC.Read.Api.Application.Command.ERP.PurchasingManagement.PurchaseArrivalNotes
{
    /// <summary>
    /// 采购到货单 + 到货物料 联查（分页 + 条件）
    /// </summary>
    public class GetArrivalNotesWithMaterialsCommand : IRequest<APIPaging<ArrivalNoteWithMaterialDto>>
    {
        public int PageIndex { get; set; } = 1;
        public int PageSize { get; set; } = 10;

        // 过滤条件
        /// <summary>
        /// 到货单单据编码（模糊）
        /// </summary>
        public string? DocCode { get; set; }
        /// <summary>
        /// 物料编码（模糊）
        /// </summary>
        public string? MaterialCode { get; set; }
        /// <summary>
        /// 供应商名称（模糊）
        /// </summary>
        public string? Supplier { get; set; }
        /// <summary>
        /// 跟单编号（模糊）
        /// </summary>
        public string? DocumentaryNumber { get; set; }
        /// <summary>
        /// 单据日期-开始
        /// </summary>
        public DateTime? DocDateStart { get; set; }
        /// <summary>
        /// 单据日期-结束
        /// </summary>
        public DateTime? DocDateEnd { get; set; }
    }
}
